package com.welbell.recipes.bean;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.welbell.recipes.BR;

/**
 * <pre>
 * Time  :2023/2/10 16:12
 * Author:liutao
 * dlog  :
 * desc  :
 * </pre>
 * Modification date:
 * Modified by:
 * Revised content:
 * <p>
 */
public class UserBean extends BaseObservable {


    private String name;
    private int age;


    public UserBean(String name, int age) {
        this.name = name;
        this.age = age;
        notifyPropertyChanged(BR.user);

    }

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
        notifyPropertyChanged(BR.age);
    }
}
